<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!-- saved from url=(0026)http://wenda.wecenter.com/ -->
<html class=""><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
    <meta name="renderer" content="webkit">
    <title>学并思问答</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <!--<base href="http://wenda.wecenter.com/">--><base href="."><!--[if IE]></base><![endif]-->
    <link href="" rel="shortcut icon" type="image/x-icon">

    <link rel="stylesheet" type="text/css" href="/wd/Public/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="/wd/Public/Css/icon.css" />
    <link rel="stylesheet" type="text/css" href="/wd/Public/Css/common.css" />
    <link rel="stylesheet" type="text/css" href="/wd/Public/Css/link.css" />
    <link rel="stylesheet" type="text/css" href="/wd/Public/Css/style.css" />

    <script type="text/javascript">
        var _12A3A3BB0FDD5081012D9CA4191A17F3="";
        var G_POST_HASH=_12A3A3BB0FDD5081012D9CA4191A17F3;
        var G_INDEX_SCRIPT = "";
        var G_SITE_NAME = "WeCenter 社交化问答社区程序";
        var G_BASE_URL = "http://wenda.wecenter.com";
        var G_STATIC_URL = "http://wenda.wecenter.com/static";
        var G_UPLOAD_URL = "http://wenda.wecenter.com/uploads";
        var G_USER_ID = "";
        var G_USER_NAME = "";
        var G_UPLOAD_ENABLE = "N";
        var G_UNREAD_NOTIFICATION = 0;
        var G_NOTIFICATION_INTERVAL = 100000;
        var G_CAN_CREATE_TOPIC = "";
        var G_ADVANCED_EDITOR_ENABLE = "Y";

    </script>
    <script type="text/javascript" src="/wd/Public/Js/jquery-2.js"></script>
    <script type="text/javascript" src="/wd/Public/Js/jquery-form.js"></script>
    <script type="text/javascript" src="/wd/Public/Js/plug-in_module.js"></script>
    <script type="text/javascript" src="/wd/Public/Js/aws.js"></script>
    <script type="text/javascript" src="/wd/Public/Js/aw_template.js"></script>
    <script type="text/javascript" src="/wd/Public/Js/app.js"></script>
    <script type="text/javascript" src="/wd/Public/Js/compatibility.js"></script>
    <script type="text/javascript" src="/wd/Public/Js/h.js"></script>


    <!--[if lte IE 8]>
    <script type="text/javascript" src="http://127.0.0.1/wenda/static/js/respond.js"></script>
    <![endif]-->
    <style type="text/css">.fancybox-margin{margin-right:17px;}</style></head>
<body>
<noscript unselectable="on" id="noscript">
    &lt;div class="aw-404 aw-404-wrap container"&gt;
    &lt;img src="http://wenda.wecenter.com/static/common/no-js.jpg"&gt;
    &lt;p&gt;你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!&lt;/p&gt;
    &lt;/div&gt;
</noscript>

<div class="aw-top-menu-wrap">
    <div class="container">
        <!-- logo -->
        <div class="aw-logo hidden-xs">
            <a href="/wd"><img src="/wd/Public/images/login_logo.png" style="width: 70px;" alt=""></a>
        </div>
        <!-- end logo -->
        <!-- 搜索框 -->
        <div class="aw-search-box  hidden-xs hidden-sm">
            <form class="navbar-search" action="<?php echo U('Index/Search/index');?>" id="global_search_form" method="get">
                <input class="form-control search-query" type="text" placeholder="搜索问题、话题或人" autocomplete="off" name="q" id="aw-search-query">
                <span title="搜索" id="global_search_btns" onclick="$(&#39;#global_search_form&#39;).submit();"><i class="icon icon-search"></i></span>
                <div class="aw-dropdown">
                    <div class="mod-body">
                        <p class="title">输入关键字进行搜索</p>
                        <ul class="aw-dropdown-list collapse"></ul>
                        <p class="search"><span>搜索:</span><a onclick="$(&#39;#global_search_form&#39;).submit();"></a></p>
                    </div>
                    <div class="mod-footer">
                        <button href="" class="pull-right btn btn-mini btn-success publish">发起问题</button>
                    </div>
                </div>
            </form>
        </div>
        <!-- end 搜索框 -->
        <!-- 导航 -->
        <div class="aw-top-nav navbar">
            <div class="navbar-header">
                <button class="navbar-toggle pull-left">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
            </div>
            <nav role="navigation" class="collapse navbar-collapse bs-navbar-collapse">
                <ul class="nav navbar-nav">
                    <li><a href="/wd" class="active"><i class="icon icon-list"></i> 发现</a></li>

                    <!-- <li><a href="http://wenda.wecenter.com/question/" class="">问题</a></li>

                    <li><a href="http://wenda.wecenter.com/article/" class="">文章</a></li> -->

                    <li><a href=""><i class="icon icon-topic"></i> 话题</a></li>
                    <li><a href=""><i class="icon icon-bulb"></i> 帮助</a></li>					<li>
                    <a style="font-weight:bold;">· · ·</a>
                    <div class="dropdown-list pull-right">
                        <ul id="extensions-nav-list">
                            <li><a href=""><i class="icon icon-activity"></i> 活动</a></li>
                        </ul>
                    </div>
                </li>
                </ul>
            </nav>
        </div>
        <!-- end 导航 -->
        <!-- 用户栏 -->
        <?php if($_SESSION['username']!= null): ?><!-- 用户栏 -->
            <div class="aw-user-nav">
                <!-- 登陆&注册栏 -->
                <a href="<?php echo U('Index/people/index');?>" class="aw-user-nav-dropdown">
                    <img alt="<?php echo (session('username')); ?>" src="/wd<?php echo (session('face_url')); ?>">
                    <!--<span class="badge badge-important">1</span>-->

                </a>
                <div class="aw-dropdown dropdown-list pull-right">
                    <ul class="aw-dropdown-list">
                        <!--<li><a href="<?php echo U('Index/profile');?>"><i class="icon icon-inbox"></i> 私信<span class="badge badge-important collapse" id="inbox_unread">1</span></a></li>-->
                        <li class="hidden-xs"><a href="<?php echo U('Index/profile/index');?>"><i class="icon icon-setting"></i> 设置</a></li>
                        <?php if($_SESSION['gid']== 1): ?><li class="hidden-xs"><a href="<?php echo U('Admin/Login/index');?>"><i class="icon icon-setting"></i> 后台管理</a></li><?php endif; ?>

                        <li><a href="<?php echo U('Index/Login/Logout');?>"><i class="icon icon-logout"></i> 退出</a></li>
                    </ul>
                </div>
                <!-- end 登陆&注册栏 -->
            </div>
            <!-- end 用户栏 -->
            <!-- 发起 -->
            <div class="aw-publish-btn">

                <!-- <a id="header_publish" class="btn-primary" href="http://wenda.wecenter.com/publish/" onclick="AWS.dialog(&#39;publish&#39;, {&#39;category_enable&#39;:&#39;0&#39;, &#39;category_id&#39;:&#39;0&#39;, &#39;topic_title&#39;:&#39;&#39;}); return false;"><i class="icon icon-ask"></i>发起</a> -->
                <a id="header_publish" class="btn-primary" href="<?php echo U('Index/publish/index');?>"><i class="icon icon-ask"></i>发起</a>
                <div class="dropdown-list pull-right">
                    <ul>
                        <li>
                            <form method="post" action="http://wenda.wecenter.com/publish/">
                                <!-- <a onclick="$(this).parents(&#39;form&#39;).submit();">问题</a> -->
                                <a href="<?php echo U('Index/publish/index');?>">问题</a>
                            </form>

                        </li>
                    </ul>
                </div>
            </div>
            <!-- end 发起 -->
            <?php else: ?>
                <div class="aw-user-nav">
                    <!-- 登陆&注册栏 -->
                    <a class="login btn btn-normal btn-primary" href="<?php echo U('Index/Login/index');?>">登录</a>
                    <a class="register btn btn-normal btn-success" href="<?php echo U('Index/Register/index');?>">注册</a>								<!-- end 登陆&注册栏 -->
                </div><?php endif; ?>
        <!-- end 用户栏 -->
        <!-- 发起 -->
        <!-- end 发起 -->
    </div>
</div>
<script type="text/javascript" src="/wd/Public/js/jquery-2.0.2.js"></script>
<script type="text/javascript" src="/wd/Public/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/wd/Public/ueditor/ueditor.all.min.js"></script>
<script>

    $(function(){
        var ue = UE.getEditor('container',{
                    serverUrl :"<?php echo U('Index/publish/ueditor');?>"

    });
    var content =$('#olddata').val();
    //判断ueditor 编辑器是否创建成功
    ue.addListener("ready", function () {
        // editor准备好之后才可以使用
        ue.setContent(content);

    });

    })

</script>

<div class="aw-container-wrap">
    <div class="container aw-publish">
        <div class="row">
            <div class="aw-content-wrap clearfix">
                <div class="col-sm-12 col-md-9 aw-main-content">
                    <!-- tab 切换 -->
                    <ul class="nav nav-tabs aw-nav-tabs active">
                        <li class="active"><a href="./images/发布 - WeCenter 社交化问答社区程序.html">问题</a></li>
                        <h2 class="hidden-xs"><i class="icon icon-ask"></i> 发起</h2>
                    </ul>
                    <!-- end tab 切换 -->
                    <form action="<?php echo U('Index/Publish/add',array('id'=>$question['id']));?>" method="post" id="question_form">
                        <!-- <form action="" method="post" id="question_form" onsubmit="return false;"> -->
                        <!-- <input type="hidden" name="post_hash" value="9195f75df88601e3"> -->
                        <!-- <input type="hidden" name="attach_access_key" value="cb0f4bc5331aff3564f8451c31780f88"> -->
                        <!-- <input type="hidden" name="question_id" id="question_id" value=""> -->
                        <!-- <input type="hidden" name="ask_user_id" value=""> -->
                        <div class="aw-mod aw-mod-publish">
                            <div class="mod-body">
                                <h3>问题标题:</h3>
                                <!-- 问题标题 -->
                                <div class="aw-publish-title active">
                                    <div>
                                        <input type="text" placeholder="问题标题..." name="question_content" id="question_contents" value="<?php echo ($question['title']); ?>" class="form-control">
                                        <div class="aw-publish-suggest-question collapse">
                                            <p class="text-color-999">你的问题可能已经有答案</p>
                                            <ul class="aw-dropdown-list">
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                                <!-- end 问题标题 -->
                                <h3>问题分类:</h3>
                                <!-- 问题分类 -->
                                <div class="aw-publish-title active">
                                    <div>
                                        <dd>
                                            <select name="category">

                                                <?php if(is_array($cateData)): foreach($cateData as $key=>$vo): if($vo['id']==$question['cid']): ?><option value="<?php echo ($vo["category_name"]); ?>" selected><?php echo ($vo["category_name"]); ?></option>
                                                        <?php else: ?>
                                                        <option value="<?php echo ($vo["category_name"]); ?>"><?php echo ($vo["category_name"]); ?></option><?php endif; endforeach; endif; ?>

                                            </select>
                                        </dd>
                                    </div>
                                </div>
                                <!-- end 问题分类 -->

                                <h3>问题补充 (选填):</h3>
                                <div class="aw-mod aw-editor-box">
                                    <div class="mod-head">
                                        <div class="wmd-panel">
                                            <script id="container" name="content" type="text/plain"></script>
                                            <textarea name="" id="olddata" cols="30" rows="10" style="display:none"><?php echo ($question['content']); ?></textarea>
                                        </div>
                                    </div>
                                </div>

                            </div>
                            <!-- <div class="mod-footer clearfix">
                            <a class="btn btn-large btn-success btn-publish-submit" id="publish_submit" onclick="AWS.ajax_post($(&#39;#question_form&#39;)); return false;">确认发起</a>
                            </div> -->
                            <div class="mod-footer clearfix">
                                <span id=""  class="aw-anonymity"></span>

                                <button class="btn btn-large btn-success btn-publish-submit" type="submit">确认发起</button>
                            </div>
                        </div>
                    </form>
                </div>
                <!-- 侧边栏 -->
                <div class="col-sm-12 col-md-3 aw-side-bar hidden-xs">
                    <!-- 问题发起指南 -->
                    <div class="aw-mod publish-help">
                        <div class="mod-head">
                            <h3>问题发起指南</h3>
                        </div>
                        <div class="mod-body">
                            <p><b>• 问题标题:</b> 请用准确的语言描述您发布的问题思想</p>
                            <p><b>• 问题补充:</b> 详细补充您的问题内容, 并提供一些相关的素材以供参与者更多的了解您所要问题的主题思想</p>
                            <p><b>• 选择话题:</b> 选择一个或者多个合适的话题, 让您发布的问题得到更多有相同兴趣的人参与. 所有人可以在您发布问题之后添加和编辑该问题所属的话题</p>
                            <p><b>• 关于积分：</b> 发起一个问题会消耗您 10 个积分, 每多一个回复你将获得 5 个积分的奖励 ,为了您的利益, 在发起问题的时候希望能够更好的描述您的问题以及多使用站内搜索功能.</p>
                        </div>
                    </div>
                    <!-- end 问题发起指南 -->
                </div>
                <!-- end 侧边栏 -->
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    var ATTACH_ACCESS_KEY = 'cb0f4bc5331aff3564f8451c31780f88';
    var CATEGORY_ID = 0;
    var PUBLISH_TYPE = 'question';
</script>


<div class="aw-footer-wrap">
    <div class="aw-footer">
        Copyright © 2016<span class="hidden-xs"> - 粤ICP备10000000, All Rights Reserved</span>

        <span class="hidden-xs">Powered By <a href="/wd" target="blank">XBS 0.0.1</a></span>

    </div>
</div>

<a class="aw-back-top hidden-xs" href="javascript:;" onclick="$.scrollTo(1, 600, {queue:true});" style="display: none;"><i class="icon icon-up">返回顶部</i></a>


<!-- DO NOT REMOVE -->
<div id="aw-ajax-box" class="aw-ajax-box"></div>

<div style="display:none;" id="__crond"><img src="./images/1452938032" width="1" height="1"></div>

<!-- Escape time: 0.067939043045044 --><!-- / DO NOT REMOVE -->



</body></html>